#!-*- encoding:utf8 -*-

from django.conf.urls.defaults import *
from newosmp.flow import models, views
from newosmp.flow.views import *
from django.views.generic import * 

urlpatterns = patterns('',
        (r'^$', views.index),
        (r'^my/$', views.my),
        (r'^add/$', views.add),
        (r'^all/$', views.all),

        (r'search/$', views.search),

        (r'^filterlist/$', views.filterlist),
        (r'searcht/$', views.searcht),
        (r'export/$', views.export),
        #(r'modifytaskprj/(?P<id>\d+)/$', views.modifytaskprj),

        #ok
        (r'^flowaction/(\d+)/0/$',   views.flow_view ),
        (r'^flowaction/(\d+)/1/$',   views.flow_auth ),
        (r'^flowaction/(\d+)/2/$',   views.flow_op ),
        (r'^flowaction/(\d+)/3/$',   views.flow_commit ),
        (r'^flowaction/(\d+)/4/$',   views.flow_modify ),
        (r'^setmodify/(\d+)/$',   views.set_modify ),
        #ajax
        (r'^ajax_goback/$',   views.ajax_goback ),
        (r'^ajax_opreplay/$',   views.ajax_opreplay ),
        (r'^ajax_taskfail/$',   views.ajax_taskfail ),
)